<template>
  <div class="succe">
    <div class="succe_main">
      <div class="Img">
        <img src="../../assets/image/success.png" alt />
        <span class="goo">礼品兑换成功</span>
      </div>
      <div class="succe_ji">
        <span class="ji">消费爆品金</span>
        <span class="moliy">
          <img src="../../assets/image/moliy.png" alt />{{totalPoint}}
        </span>
      </div>
      <div class="buttom">
        <span @click="toCar()">查看订单</span>
        <span @click="toHome()">返回首页</span>
      </div>
    </div>
    <div class="succe_center">
      <p>温馨提示:</p>
      <span class="text">收货时请当面开箱验货后再签收,发现破损或者货物由差错请在24小时之内反映到售后服务或客服人员</span>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
        totalPoint:''
    };
  },
  created(){
      this.totalPoint=JSON.parse(sessionStorage.getItem('totalPoint'))
  },
  methods: {
    // 返回礼品车
    toCar() {
      this.$router.push({path:"/PointsOrder",query:{type:2}});
    },
    // 返回爆品金首页
    toHome() {
      this.$router.push("/boomIndex");
    },
  },
};
</script>
<style lang="less" scope>
.succe {
  padding: 0;
  background: #efefef;
  .succe_main {
    height: 5.54rem;
    text-align: center;
    padding: 0.32rem;
    background: #ffffff;
    .Img {
      display: block;
      text-align: center;
      margin: 0 auto;
      width: 2.8rem;
      height: 3rem;
      img {
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
      }
      .goo {
        color: #1eb808;
        font-size: 0.38rem;
        font-weight: bold;
        font-family: PingFang SC;
      }
    }

    .succe_ji {
      display: flex;
      justify-content: space-between;
      height: 1.6rem;
      align-items: center;
      .ji {
        color: #222222;
        font-weight: 500;
        font-size: 0.32rem;
      }
      .moliy {
        color: #1eb808;
        font-size: 0.2rem;
        font-weight: bold;
      }
      img {
        width: 0.3rem;
        height: 0.3rem;
      }
    }
    .buttom {
      display: flex;
      justify-content: space-between;
      height: 1.2rem;
      align-items: center;
      width: 50%;
      float: right;
      span {
        width: 2rem;
        height: 0.8rem;
        line-height: 0.8rem;
        border: 0.01rem solid #d4d4d4;
        border-radius: 0.08rem;
        align-items: center;
        color: #666666;
        font-size: 0.24rem;
      }
    }
  }
  .succe_center {
    height: 11.6rem;
    line-height: 0.62rem;
    background: #efefef;
    padding: 0.32rem;
    i {
      width: 0.32rem;
      height: 0.32rem;
      border: 0.01rem solid #666;
      border-radius: 0.32rem;
    }
    .text {
      font-size: 0.24rem;
      font-family: PingFang SC;
      font-weight: 500;
      color: #888888;
      line-height: 0.36rem;
    }
  }
}
</style>